﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp8
{
    class Teacher:Person
    {
        public int id;
        public string name;
        public char sex;
        public long cardid;
        public long tel;
        public string title;
        public int wageno;

        public  Teacher(int id, string name, string sex, int cardid, int tel, string title, int wageno)
            : base()
        {
            this.title = title;
            this.wageno = wageno;
        }
        public void hello()
        {
            Console.WriteLine("{0},{1},{2},{3},{4},{5},{6}",id,name,sex,cardid,tel,title,wageno);
        }
    }
}
